1,213 research outputs found
Code Completion with Neural Attention and Pointer Networks
Intelligent code completion has become an essential research task to
accelerate modern software development. To facilitate effective code completion
for dynamically-typed programming languages, we apply neural language models by
learning from large codebases, and develop a tailored attention mechanism for
code completion. However, standard neural language models even with attention
mechanism cannot correctly predict the out-of-vocabulary (OoV) words that
restrict the code completion performance. In this paper, inspired by the
prevalence of locally repeated terms in program source code, and the recently
proposed pointer copy mechanism, we propose a pointer mixture network for
better predicting OoV words in code completion. Based on the context, the
pointer mixture network learns to either generate a within-vocabulary word
through an RNN component, or regenerate an OoV word from local context through
a pointer component. Experiments on two benchmarked datasets demonstrate the
effectiveness of our attention mechanism and pointer mixture network on the
code completion task.Comment: Accepted in IJCAI 201
DDFlow: Learning Optical Flow with Unlabeled Data Distillation
We present DDFlow, a data distillation approach to learning optical flow
estimation from unlabeled data. The approach distills reliable predictions from
a teacher network, and uses these predictions as annotations to guide a student
network to learn optical flow. Unlike existing work relying on hand-crafted
energy terms to handle occlusion, our approach is data-driven, and learns
optical flow for occluded pixels. This enables us to train our model with a
much simpler loss function, and achieve a much higher accuracy. We conduct a
rigorous evaluation on the challenging Flying Chairs, MPI Sintel, KITTI 2012
and 2015 benchmarks, and show that our approach significantly outperforms all
existing unsupervised learning methods, while running at real time.Comment: 8 pages, AAAI 1
- …